<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="materialId" name="materialId" th:value="${material.materialId}"  type="hidden">
														<div class="form-group">
								<label class="col-sm-3 control-label">名称：</label>
								<div class="col-sm-8">
									<input id="materialName" name="materialName" th:value="${material.materialName}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">规格：</label>
								<div class="col-sm-8">
									<input id="specs" name="specs" th:value="${material.specs}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">保质期：</label>
								<div class="col-sm-8">
									<input id="shelflife" name="shelflife" th:value="${material.shelflife}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">计量单位：</label>
								<div class="col-sm-8">
									<input id="unit" name="unit" th:value="${material.unit}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">品牌：</label>
								<div class="col-sm-8">
									<input id="brand" name="brand" th:value="${material.brand}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">单价：</label>
								<div class="col-sm-8">
									<input id="price" name="price" th:value="${material.price}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="mark" name="mark" th:value="${material.mark}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">检测模板：</label>
								<div class="col-sm-4">
									<select id="checkTemplateId" name="checkTemplateId" class="form-control">
									</select>
								</div>
								<div class="col-sm-4 input-group">
									<input type="text" id="templateName" class="form-control" placeholder="搜索检测模版">
								    <span class="input-group-btn"> <button type="button" class="btn btn-primary" onclick="getCheckTemplateByUpdate()">搜索
								    </button> </span>
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:inline="javascript">
        function getTemplateId() {
            var templateId = [[${material.checkTemplateId}]]
            console.log(templateId)
            return templateId;
        }
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/material/material/edit.js}" src="/js/appjs/material/material/edit.js">
	</script>

</body>
</html>
